#ifndef PIECE_H
#define PIECE_H

#include "TabCoordonneeDyn.h"
#include "Coordonnee.h"
#include <stdbool.h>

typedef struct {
    char type;
    Coordonnee position;
    bool dejaJoue;
    tabCoordonneeDyn *tabDeplacement;
    char equipe;
}Piece;

/*Fonctions/Procedures*/
void initialiserPiece(Piece *p, char t, char e, Coordonnee c);
void testamentPiece(Piece *p);
void definirDeplacement(Piece *piece);

/*getter*/
char getType(Piece *p);
Coordonnee getPosition(Piece *p);
bool getDejaJoue(Piece *p);
char getEquipe(Piece *p);

/*setter*/
void setType(Piece *p, char t);
void setPosition(Piece *p, Coordonnee c);
void setDejaJoue(Piece *p, bool b);
void setEquipe(Piece *p, char e);


#endif
